icon-browser: Add .sidebar style class in the main window
authornana-4 <hnmaigo@gmail.com>
Sun, 22 Nov 2020 04:54:44 +0000 (13:54 +0900)
committerJakub Steiner <jimmac@gmail.com>
Mon, 23 Nov 2020 09:51:58 +0000 (10:51 +0100)
So the sidebar can get the proper background and border colors.

demos/icon-browser/window.ui

index 84658e3799822d2a9f8f86be0c973be30bb5ecfc..7dc204e41f1a635dbb8916072d603d4be1303333 100644 (file)
       <object class="GtkBox">
         <child>
           <object class="GtkScrolledWindow">
+            <style>
+              <class name="sidebar"/>
+            </style>
             <property name="hscrollbar-policy">never</property>
             <child>
               <object class="GtkListView">
                 <style>
-                  <class name="navigation-sidebar" />
+                  <class name="navigation-sidebar"/>
                 </style>
                 <property name="model">
                   <object class="GtkSingleSelection" id="context_model">
             </child>
           </object>
         </child>
-        <child>
-          <object class="GtkSeparator">
-            <property name="orientation">vertical</property>
-          </object>
-        </child>
         <child>
           <object class="GtkBox" id="content_box">
             <property name="orientation">vertical</property>